package com.study.spmongodb.wwj.juc.utils;

import java.util.concurrent.Phaser;
import java.util.concurrent.TimeUnit;

/**
 * @author MI
 * @version 1.0
 * @date 2020/12/13 22:29
 */
public class PhaserExample5 {
    public static void main(String[] args) throws InterruptedException {
        final Phaser phaser = new Phaser(3);
        new Thread(phaser::arriveAndAwaitAdvance).start();
        TimeUnit.SECONDS.sleep(4);
    }
}
